package com.c2c.po;

import com.c2c.po.enums.impl.OrdersState;

import java.util.Date;

public class Orders {

    private int orderId;
    private Date orderRiseTime;
    private Date orderEndTime;
    private int expressId;
    private String orderEvaluate;
    private String orderChar;
    private int orderGrade;
    private int userAccount;
    private int goodsId;

    private Goods goods;
    private User user;

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private OrdersState orderState;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public OrdersState getOrderState() {
        return orderState;
    }

    public void setOrderState(OrdersState ordersState) {
        this.orderState = ordersState;
    }

    public Date getOrderRiseTime() {
        return orderRiseTime;
    }

    public void setOrderRiseTime(Date orderRiseTime) {
        this.orderRiseTime = orderRiseTime;
    }

    public Date getOrderEndTime() {
        return orderEndTime;
    }

    public void setOrderEndTime(Date orderEndTime) {
        this.orderEndTime = orderEndTime;
    }

    public int getExpressId() {
        return expressId;
    }

    public void setExpressId(int expressId) {
        this.expressId = expressId;
    }

    public String getOrderEvaluate() {
        return orderEvaluate;
    }

    public void setOrderEvaluate(String orderEvaluate) {
        this.orderEvaluate = orderEvaluate;
    }

    public String getOrderChar() {
        return orderChar;
    }

    public void setOrderChar(String orderChar) {
        this.orderChar = orderChar;
    }

    public int getOrderGrade() {
        return orderGrade;
    }

    public void setOrderGrade(int orderGrade) {
        this.orderGrade = orderGrade;
    }

    public int getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(int userAccount) {
        this.userAccount = userAccount;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "orderId=" + orderId +
                ", orderRiseTime=" + orderRiseTime +
                ", orderEndTime=" + orderEndTime +
                ", expressId=" + expressId +
                ", orderEvaluate='" + orderEvaluate + '\'' +
                ", orderChar='" + orderChar + '\'' +
                ", orderGrade=" + orderGrade +
                ", userAccount=" + userAccount +
                ", goodsId=" + goodsId +
                ", orderState=" + orderState +
                '}';
    }
}
